package com.ewzj.bigdata.di.module

import com.ewzj.bigdata.mvp.contract.HomeFragmentContract
import com.ewzj.bigdata.mvp.model.HomeFragmentModel
import com.jess.arms.di.scope.ActivityScope
import com.jess.arms.mvp.IModel
import com.jess.arms.mvp.IView
import dagger.Module
import dagger.Provides
import javax.inject.Inject

/**
 * author:zhangjing
 * 作用:
 * return:
 */
@ActivityScope
@Module
class HomeFragmentModule @Inject constructor(val view: HomeFragmentContract.View){
    @ActivityScope
    @Provides
    fun provideView():HomeFragmentContract.View=view

    @ActivityScope
    @Provides
    fun provideModel(model: HomeFragmentModel):HomeFragmentContract.Model{
        return model
    }
}